package com.dodol.common;


import com.dodol.util.ElementFinder;


public class TestStep {
    // 动作类型
    private UserAction userActionType;
    // 元素标识符，一个查找方式和查找参数的对象
    private ElementFinder.Element element;
    //元素查找方式
    // 其他数据，例如输入的内容,下拉列表选中的值或者索引
    private String enterValue;
    // 校验
    private ExpectedVerification verification;


    public TestStep() {
    }

    public TestStep(UserAction userActionType, ElementFinder.Element element) {
        this.element = element;
        this.userActionType = userActionType;

    }

    public TestStep(UserAction userActionType, String enterValue) {
        this.enterValue = enterValue;
        this.userActionType = userActionType;
    }


    public UserAction getUserActionType() {
        return userActionType;
    }

    public void setUserActionType(UserAction userActionType) {
        this.userActionType = userActionType;
    }

    public String getEnterValue() {
        return enterValue;
    }

    public void setEnterValue(String enterValue) {
        this.enterValue = enterValue;
    }

    public ExpectedVerification getVerification() {
        return verification;
    }

    public void setVerification(ExpectedVerification verification) {
        this.verification = verification;
    }

    public ElementFinder.Element getElement() {
        return element;
    }

    public void setElement(ElementFinder.Element element) {
        this.element = element;
    }
}